package com.ruoyi.web.tdm.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.tdm.mapper.TdmLinChuangYouXiaoMapper;
import com.ruoyi.web.tdm.domain.TdmLinChuangYouXiao;
import com.ruoyi.web.tdm.service.ITdmLinChuangYouXiaoService;

/**
 * ID-11 -23 临床有效浓度Service业务层处理
 * 
 * @author ly
 * @date 2022-03-11
 */
@Service
public class TdmLinChuangYouXiaoServiceImpl implements ITdmLinChuangYouXiaoService 
{
    @Autowired
    private TdmLinChuangYouXiaoMapper tdmLinChuangYouXiaoMapper;

    /**
     * 查询ID-11 -23 临床有效浓度
     * 
     * @param id ID-11 -23 临床有效浓度主键
     * @return ID-11 -23 临床有效浓度
     */
    @Override
    public TdmLinChuangYouXiao selectTdmLinChuangYouXiaoById(Long id)
    {
        return tdmLinChuangYouXiaoMapper.selectTdmLinChuangYouXiaoById(id);
    }

    /**
     * 查询ID-11 -23 临床有效浓度列表
     * 
     * @param tdmLinChuangYouXiao ID-11 -23 临床有效浓度
     * @return ID-11 -23 临床有效浓度
     */
    @Override
    public List<TdmLinChuangYouXiao> selectTdmLinChuangYouXiaoList(TdmLinChuangYouXiao tdmLinChuangYouXiao)
    {
        return tdmLinChuangYouXiaoMapper.selectTdmLinChuangYouXiaoList(tdmLinChuangYouXiao);
    }

    /**
     * 新增ID-11 -23 临床有效浓度
     * 
     * @param tdmLinChuangYouXiao ID-11 -23 临床有效浓度
     * @return 结果
     */
    @Override
    public int insertTdmLinChuangYouXiao(TdmLinChuangYouXiao tdmLinChuangYouXiao)
    {
        tdmLinChuangYouXiao.setCreateTime(DateUtils.getNowDate());
        return tdmLinChuangYouXiaoMapper.insertTdmLinChuangYouXiao(tdmLinChuangYouXiao);
    }

    /**
     * 修改ID-11 -23 临床有效浓度
     * 
     * @param tdmLinChuangYouXiao ID-11 -23 临床有效浓度
     * @return 结果
     */
    @Override
    public int updateTdmLinChuangYouXiao(TdmLinChuangYouXiao tdmLinChuangYouXiao)
    {
        tdmLinChuangYouXiao.setUpdateTime(DateUtils.getNowDate());
        return tdmLinChuangYouXiaoMapper.updateTdmLinChuangYouXiao(tdmLinChuangYouXiao);
    }

    /**
     * 批量删除ID-11 -23 临床有效浓度
     * 
     * @param ids 需要删除的ID-11 -23 临床有效浓度主键
     * @return 结果
     */
    @Override
    public int deleteTdmLinChuangYouXiaoByIds(Long[] ids)
    {
        return tdmLinChuangYouXiaoMapper.deleteTdmLinChuangYouXiaoByIds(ids);
    }

    /**
     * 删除ID-11 -23 临床有效浓度信息
     * 
     * @param id ID-11 -23 临床有效浓度主键
     * @return 结果
     */
    @Override
    public int deleteTdmLinChuangYouXiaoById(Long id)
    {
        return tdmLinChuangYouXiaoMapper.deleteTdmLinChuangYouXiaoById(id);
    }
}
